
#ifndef _MEMBER_BSPLITTER_H_
#define _MEMBER_BSPLITTER_H_

#include <BArray>
#include <BSplitter>

namespace BWE
{
	class BWidget;

	class member_BSplitter : public BObject
	{
	public:
		member_BSplitter(BSplitter* splitter);
		~member_BSplitter();

		void procShow(BObject* object, const BValue& value);
		void procHide(BObject* object, const BValue& value);

		void adjust();
		void adjustHandle(const BPoint& pos);

		BRect handleRect(int index);

		BSplitter*			boss;
		bool				dirty;
		int					handle;
		bool				holding;
		int					handleIndex;
		BPoint				pressPos;
		Orientation			orientation;
		BArray<BWidget*>	widgets;
	};
}

#endif